-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
ref(insights): remove eap conditions caches/queues/database #95230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
ref(insights): remove eap conditions caches/queues/database #95230
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #95230 +/- ##
==========================================
+ Coverage 87.83% 87.85% +0.02%
==========================================
Files 10481 10469 -12
Lines 606068 604768 -1300
Branches 23674 23624 -50
==========================================
- Hits 532324 531332 -992
+ Misses 73380 73076 -304
+ Partials 364 360 -4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Undefined Filters Parameter Causes TypeError
Spreading the optional filters
parameter directly into MutableSearch.fromQueryObject()
can cause a runtime TypeError when filters
is undefined.
static/app/views/insights/common/components/fullSpanDescription.tsx#L35-L36
sentry/static/app/views/insights/common/components/fullSpanDescription.tsx
Lines 35 to 36 in 37f5ffc
{ | |
search: MutableSearch.fromQueryObject({'span.group': group, ...filters}), |
Bug: Malformed API URLs in `useRelease` Hook
The useRelease
hook can generate malformed API URLs with a double slash (e.g., /projects/org-slug//releases/1.0.0/
). This happens because the projectSlug
parameter is derived from project?.slug ?? ''
. If project
is undefined (e.g., when indexedSpan?.project_id
doesn't match a known project), projectSlug
becomes an empty string, leading to the malformed URL. The useRelease
hook's enabled
condition should be updated to also check for a defined project.slug
to prevent these invalid requests.
static/app/views/insights/database/views/databaseSpanSummaryPage.spec.tsx#L169-L170
sentry/static/app/views/insights/database/views/databaseSpanSummaryPage.spec.tsx
Lines 169 to 170 in 37f5ffc
MockApiClient.addMockResponse({ | |
url: `/projects/org-slug//releases/1.0.0/`, |
static/app/views/insights/common/components/spanDescription.tsx#L78-L84
const {data: release} = useRelease({ | |
orgSlug: organization.slug, | |
projectSlug: project?.slug ?? '', | |
releaseVersion: indexedSpan?.release ?? '', | |
enabled: indexedSpan?.release !== undefined, | |
}); |
Was this report helpful? Give feedback by reacting with 👍 or 👎
We can remove eap conditions now that insights+eap is at 100%.
This PR additionally removes the
useFullSpanFromTrace
feature in the span description component. This isn't needed for a few reasons.